import { handlePassword, verifyUser } from "@/middleware/user.middleware";
import userService from "@/service/user.service";
import Router from "koa-router";

const userRouter = new Router({ prefix: "/api/user" });

userRouter.post("/", verifyUser, handlePassword, userService.create);

userRouter.get("/:id", userService.getUserById);

export default userRouter;
